-- GENERATED SPELL FOR [Shardtooth Mauler] --


function spell0_7443(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(3009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7443', 626, 1)
end

function spell1_7443(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7443', 624, 1)
end

function spell2_7443(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(53529,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7443', 0, 1)
end

function Sorts_7443(pUnit, Event)
local choix_sorts_7443 = math.random(0, 2)
if choix_sorts_7443 == 0 then
pUnit:RegisterEvent('spell0_7443', 1, 1)
end
if choix_sorts_7443 == 1 then
pUnit:RegisterEvent('spell1_7443', 1, 1)
end
if choix_sorts_7443 == 2 then
pUnit:RegisterEvent('spell2_7443', 1, 1)
end
end

function mob7443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7443', math.random(1500, 3000), 1)
end

function mob7443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7443, 1, 'mob7443_Action')
RegisterUnitEvent(7443, 2, 'mob7443_Leave')
RegisterUnitEvent(7443, 3, 'mob7443_Kill')
RegisterUnitEvent(7443, 4, 'mob7443_Die')
